package com.zhang.modules.dict.entity;

import com.zhang.common.jpa.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Size;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity(name = "SysDictDatum")
@Table(name = "sys_dict_data")
public class DictData extends BaseEntity {

    @Column(name = "dict_sort")
    private Integer dictSort;

    @Size(max = 100)
    @Column(name = "dict_label", length = 100)
    private String dictLabel;

    @Size(max = 100)
    @Column(name = "dict_value", length = 100)
    private String dictValue;

    @Size(max = 100)
    @Column(name = "dict_type", length = 100)
    private String dictType;

    @Size(max = 100)
    @Column(name = "css_class", length = 100)
    private String cssClass;

    @Size(max = 100)
    @Column(name = "list_class", length = 100)
    private String listClass;

    @Column(name = "is_default")
    private Character isDefault;

    @Column(name = "status")
    private Character status;

    @Size(max = 500)
    @Column(name = "remark", length = 500)
    private String remark;

}